package org.ishequ.domain;

import java.util.Date;

public class ShortMessage {

	private long id;
	private String receiver;
	private String sender;
	private Date receiveTime;
	private String content;
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	
	public String getReceiver() {
		return receiver;
	}
	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}
	
	public String getSender() {
		return sender;
	}
	public void setSender(String sender) {
		this.sender = sender;
	}
	
	public Date getReceiveTime() {
		return receiveTime;
	}
	public void setReceiveTime(Date receiveTime) {
		this.receiveTime = receiveTime;
	}
	
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	
	public ShortMessage() {
	}
	
	public ShortMessage(String receiver, String sender, Date receiveTime,
			String content) {
		this.receiver = receiver;
		this.sender = sender;
		this.receiveTime = receiveTime;
		this.content = content;
	}
	
	public ShortMessage(long id, String receiver, String sender,
			Date receiveTime, String content) {
		super();
		this.id = id;
		this.receiver = receiver;
		this.sender = sender;
		this.receiveTime = receiveTime;
		this.content = content;
	}
	@Override
	public String toString() {
		return "ShortMessage [content=" + content + ", id=" + id
				+ ", receiveTime=" + receiveTime + ", receiver=" + receiver
				+ ", sender=" + sender + "]";
	}
	
}
